package com.jiumao.model;

import java.util.ArrayList;
import java.util.List;
import java.util.*;


public class Contact {
    private List<Person> persons;

    public Contact(){
        this.persons = new ArrayList();
    }


    public void addPerson(Person person){
        this.persons.add(person);
    }

    public void printAll(){
        for(Person person:this.persons){
            System.out.println("name: "+person.getName());
        }
    }

}
